﻿using MassTransit;
using System.ComponentModel.DataAnnotations;

namespace Magic.Oidc.AuthorizatonServer.Models
{
    public class User
    {
        public Guid Id { get; set; } = NewId.NextGuid();

        [StringLength(100)]
        public string Email { get; set; }

        [StringLength(100)]
        public string UserName { get; set; }

        [StringLength(100)]
        public string Password { get; set; }

        [StringLength(20)]
        public string Mobile { get; set; }

        public string CreatedAt { get; set; } = new DateTimeOffset(DateTime.Now).ToUnixTimeMilliseconds().ToString();

        public string UpdatedAt { get; set;} = new DateTimeOffset(DateTime.Now).ToUnixTimeMilliseconds().ToString();
        [StringLength(100)]
        public string CreatedBy { get; set; } = "admin";
        [StringLength(100)]
        public string UpdatedBy { get; set;} = "admin";
        [StringLength(300)]
        public string Remark { get; set; }

    }
}
